package com.jyxd.web.dao.assessment;

import com.jyxd.web.data.assessment.TemperatureReport;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TemperatureReportDao {

    /**
     * 新增体温单记录
     * @param temperatureReport
     * @return boolean
     */
    boolean insert(TemperatureReport temperatureReport);

    /**
     * 根据患者id和时间查询数据
     * @param patientId   dateTime
     * @return List<TransfusionAssessment>
     */
    List<TemperatureReport> queryData(@Param("patientId")String patientId, @Param("dateTime")String dateTime);
    /**
     * 根据患者id和时间删除数据
     * @param patientId   dateTime
     * @return List<TransfusionAssessment>
     */
    int  deleteByPatientIdAndDateTime(@Param("patientId") String patientId,@Param ("dateTime")String dateTime);
}
